Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.
Syntax
Parameters
- method
- A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
- args
- An array of objects to pass as arguments to the specified method. This parameter can be a null reference (Nothing in Visual Basic) if the method takes no arguments.
Return Value
An
System.Object that contains the return value from the delegate being invoked, or a null reference (
Nothing in Visual Basic) if the delegate has no return value.
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also